Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-1612 allow duplicating material to USD #3907

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

Refactor the prim update manager:

  • Refactor the duplicate function into two functions: duplicateToMaya and duplicateToUsd.
  • The duplicateToUsd function takes a Maya node instead of a UFE path to support Maya materials, which are not DAG objects.
  • Support non-DAG object in the pushExport function when creating the full object list.
  • This is necessary so that the material-only export correctly identify the material as being in the selection.

Improve the duplicate command:

  • Support parsing pure Maya object names as the first argument to the duplicate command.
  • When the first argument cannot be parsed as UFE then directly call the USD duplicate function with the Maya object instead of the UFE path.

Add a unit test for duplicating to USD a material.

@pierrebai-adsk pierrebai-adsk added the adsk Related to Autodesk plugin label Sep 10, 2024
@@ -580,14 +580,19 @@ PushExportResult pushExport(const MObject& mayaObject, const UsdMayaPrimUpdaterC

Copy link
Collaborator Author

@pierrebai-adsk pierrebai-adsk Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the diff in this file, turn off whitespace changes, because a lot of lines only changed indentation.

barbalt
barbalt previously approved these changes Sep 12, 2024
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 12, 2024
@seando-adsk seando-adsk added workflows Related to in-context workflows and removed adsk Related to Autodesk plugin ready-for-merge Development process is finished, PR is ready for merge labels Sep 18, 2024
Refactor the prim update manager:
- Refactor the duplicate function into two functions: duplicateToMaya and duplicateToUsd.
- The duplicateToUsd function takes a Maya node instead of a UFE path to support Maya materials, which are not DAG objects.
- Support non-DAG object in the pushExport function when creating the full object list.
- This is necessary so that the material-only export correctly identify the material as being in the selection.

Improve the duplicate command:
- Support parsing pure Maya object names as the first argument to the duplicate command.
- When the first argument cannot be parsed as UFE then directly call the USD duplicate function with the Maya object instead of the UFE path.

Add a unit test for duplicating to USD a material.
@pierrebai-adsk
Copy link
Collaborator Author

I only fixed the merge conflicts, nothing else changed.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 18, 2024
@seando-adsk seando-adsk merged commit 4f3e374 into dev Sep 18, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-1612/dup-material-menu branch September 18, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants